Platform Explorer / Nuxeo Platform 6.0

Contribution xml-opensocialDashboard.directoryContrib--directories

This contribution is part of XML component xml-opensocialDashboard.directoryContrib inside nuxeo-opensocial-gadgets-core-6.0.jar

Extension Point

Extension point directories of component SQLDirectoryFactory.

Contributed Items

  • <directory name="externalGadgets">
          <schema>externalgadget</schema>
          <dataSource>java:/nxsqldirectory</dataSource>
          <cacheTimeout>3600</cacheTimeout>
          <cacheMaxSize>1000</cacheMaxSize>
          <table>externalGadgets</table>
          <idField>id</idField>
          <autoincrementIdField>false</autoincrementIdField>
          <createTablePolicy>on_missing_columns</createTablePolicy>
        </directory>

XML Source

<extension point="directories" target="org.nuxeo.ecm.directory.sql.SQLDirectoryFactory">

   <!-- has to be matched to the java version of the name in GadgetServiceImpl -->
    <directory name="externalGadgets">
      <schema>externalgadget</schema>
      <dataSource>java:/nxsqldirectory</dataSource>
      <cacheTimeout>3600</cacheTimeout>
      <cacheMaxSize>1000</cacheMaxSize>
      <table>externalGadgets</table>
      <idField>id</idField>
      <autoincrementIdField>false</autoincrementIdField>
      <createTablePolicy>on_missing_columns</createTablePolicy>
    </directory>

  </extension>